package com.marshall.scstudy.service;

import com.marshall.scstudy.common.CommonResult;
import com.marshall.scstudy.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by
 *
 * @author : Marshall
 * @datetime: 2021/11/4 10:56
 */
@FeignClient(value = "cloud-provider-service")
public interface PaymentFeignService {

    @GetMapping(value = "payment/get/{id}")
    CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);


    @GetMapping(value = "payment/feignTimeout")
    String payMentFeignTimeOut();
}